{% extends "base.html" %}
{% block title %}GAE文件管理{% endblock %}
{% block main %}

<table id="ver-zebra">
    <tr>
        <th><a href="/list/">文件列表</a></th>
        <th>文件管理</th>
        <th>{% if user_greeting %} {{user_greeting}} {% endif %}</th>
    </tr>
</table>
<hr height="2" width="60%" align="left">
<div id="uploadpanle">
<h2>上传文件:</h2>
<p>选择文件路径并点击“上传”按钮</p>
  <form id="upload_form" action="/manage/upload/" enctype="multipart/form-data" method="post">
    <div><label for="id_file">文件路径:</label> &nbsp; <input type="file" name="file" id="file" size=80/></div>
    <div><input type="submit" value="上传文件" /></div>
  </form>
<h5>上传说明</h5>
<ul>
<li>文件大小< 1M Bytes</li>
</ul>
</div>
<br>
{% if upload_message %}
<br><b>{{upload_message}}</b><br>
{% endif %}
<hr height="2" width="60%" align="left">

<div id="deletepanel">
<h2>删除文件:</h2>
  <form id="delete_form" action="/manage/delete/" enctype="multipart/form-data" method="post">
    <div><label for="id_file">文件编号:</label> &nbsp;  <input type=text name="file_id" id="file_id"></div>
    <div><input type="submit" value="删除文件"/></div>
  </form>

<br>
{% if delete_message %}
<br><b>{{delete_message}}</b><br>
{% endif %}
</div>

{% endblock %}
</body>
</html>
